Optimal. Leaf size=34 \[ \frac {c \log (x)}{a}-\frac {(b c-a d) \log \left (a+b x^2\right )}{2 a b} \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {446, 72} \begin {gather*} \frac {c \log (x)}{a}-\frac {(b c-a d) \log \left (a+b x^2\right )}{2 a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 72
Rule 446
Rubi steps
\begin {align*} \int \frac {c+d x^2}{x \left (a+b x^2\right )} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {c+d x}{x (a+b x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {c}{a x}+\frac {-b c+a d}{a (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {c \log (x)}{a}-\frac {(b c-a d) \log \left (a+b x^2\right )}{2 a b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 34, normalized size = 1.00 \begin {gather*} \frac {(a d-b c) \log \left (a+b x^2\right )}{2 a b}+\frac {c \log (x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {c+d x^2}{x \left (a+b x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 33, normalized size = 0.97 \begin {gather*} \frac {2 \, b c \log \relax (x) - {\left (b c - a d\right )} \log \left (b x^{2} + a\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.30, size = 36, normalized size = 1.06 \begin {gather*} \frac {c \log \left (x^{2}\right )}{2 \, a} - \frac {{\left (b c - a d\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 37, normalized size = 1.09 \begin {gather*} \frac {c \ln \relax (x )}{a}-\frac {c \ln \left (b \,x^{2}+a \right )}{2 a}+\frac {d \ln \left (b \,x^{2}+a \right )}{2 b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.11, size = 35, normalized size = 1.03 \begin {gather*} \frac {c \log \left (x^{2}\right )}{2 \, a} - \frac {{\left (b c - a d\right )} \log \left (b x^{2} + a\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 32, normalized size = 0.94 \begin {gather*} \frac {c\,\ln \relax (x)}{a}+\frac {\ln \left (b\,x^2+a\right )\,\left (a\,d-b\,c\right )}{2\,a\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.67, size = 26, normalized size = 0.76 \begin {gather*} \frac {c \log {\relax (x )}}{a} + \frac {\left (a d - b c\right ) \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________